<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  <h1><font color="blue">您现在是超级管理员权限</font></h1>
  <h3><font color="red">添加经理用户</font></h3>
  <s:form action="insertTestAction!insertManager">
  <s:textfield name="manager.managerId" label="analystId"></s:textfield>
  <s:password name="manager.password" label="password"></s:password>
  <s:textfield name="manager.name" label="name"></s:textfield>
  <s:textfield name="manager.tel" label="tel"></s:textfield>
  <s:submit></s:submit>
  </s:form>
  
  <h3><font color="red">添加分析师用户</font></h3>
  <s:form action="insertTestAction!insertAnalyst">
  <s:textfield name="analyst.analystId" label="analystId"></s:textfield>
  <s:password name="analyst.password" label="password"></s:password>
  <s:textfield name="analyst.name" label="name"></s:textfield>
  <s:textfield name="analyst.tel" label="tel"></s:textfield>
  <s:submit></s:submit>
  </s:form>
  
  <h3><font color="red">添加企业用户</font></h3>
  <s:form action="insertTestAction!insertCompany">
  <s:textfield name="company.companyId" label="companyId"></s:textfield>
  <s:password name="company.password" label="password"></s:password>
  <s:textfield name="company.name" label="name"></s:textfield>
  <s:textfield name="company.address" label="address"></s:textfield>
  <s:textfield name="company.tel" label="tel"></s:textfield>
  <s:submit></s:submit>
  </s:form>
  
  <h3><font color="red">添加企业角色(保证数据库只有三类角色，guarantor,lender,both,勿乱填)</font></h3>
  <s:form action="insertTestAction!insertCompanyRole">
  <s:textfield name="companyRole.role" label="role"></s:textfield>
  <s:submit></s:submit>
  </s:form>
  
  <h3><font color="red">添加担保方式(保证数据库只有三种担保方式，guarantee(担保),mortgage(抵押),pledge(质押),勿乱填)</font></h3>
  <s:form action="insertTestAction!insertGuaWay">
  <s:textfield name="guaWay.guaWay" label="GuaranteeWay"></s:textfield>
  <s:submit></s:submit>
  </s:form>
  	
	
  <h3><font color="red">添加贷款状态(保证数据库只有六种担保方式，unapproved:未审批,approved:已审批,approving:正在审批,rejected:驳回,repaid:已偿还,unrepaid:未偿还。勿乱填)</font></h3>
  <s:form action="insertTestAction!insertLoanStatus">
  <s:textfield name="status.lstatus" label="LoanStatus"></s:textfield>
  <s:submit></s:submit>
  </s:form>
  </body>
</html>
